/*
 * Copyright 2008-2012 Centro Andaluz de Innovación y Tecnologías de la
 * Información y las Comunicaciones (CITIC). All Rights Reserved.
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER
 *
 * Please contact CITIC - Edificio CITIC, C/ Marie Curie, 6 Parque
 * Tecnológico de Andalucía 29590 - Campanillas, Málaga, Spain
 * or visit www.citic.es, if you need additional information or
 * have any questions.
 */

package es.citic.puedes.youtube.tables;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * The persistent class for the userkeyword database table.
 * 
 */
@Entity
@Table(name = "youtubemanager_userkeyword")
public class Userkeyword {

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "id")
	private Integer id;

	@Column(name = "dislikecount")
	private Integer dislikecount;

	@Column(name = "likecount")
	private Integer likecount;

	@Column(name = "visitcount")
	private Integer visitcount;

	// nuevo
	@Column(name = "userid")
	private Integer userid;

	// bi-directional many-to-one association to Keyword
	@ManyToOne
	@JoinColumn(name = "keywordid")
	private Keyword keyword;

	public Userkeyword() {
	}

	/**
	 * Constructor with parameters
	 * 
	 * @param dislikecount
	 *            dislike count
	 * @param likecount
	 *            like count
	 * @param visitcount
	 *            visit count
	 * @param keyword
	 *            keyword associated with the user
	 * @param userid
	 *            PUEDeS user id
	 * 
	 */

	public Userkeyword(Integer dislikecount, Integer likecount,
			Integer visitcount, Keyword keyword, Integer userid) {

		this.dislikecount = dislikecount;
		this.likecount = likecount;
		this.visitcount = visitcount;
		this.keyword = keyword;
		this.userid = userid;
	}

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getDislikecount() {
		return this.dislikecount;
	}

	public void setDislikecount(Integer dislikecount) {
		this.dislikecount = dislikecount;
	}

	public Integer getLikecount() {
		return this.likecount;
	}

	public void setLikecount(Integer likecount) {
		this.likecount = likecount;
	}

	public Integer getVisitcount() {
		return this.visitcount;
	}

	public void setVisitcount(Integer visitcount) {
		this.visitcount = visitcount;
	}

	public Keyword getKeyword() {
		return this.keyword;
	}

	public void setKeyword(Keyword keyword) {
		this.keyword = keyword;
	}

	public Integer getUserid() {
		return userid;
	}

	public void setUserid(Integer userid) {
		this.userid = userid;
	}

}